<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Класс AComboBox</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li class="current"><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="hierarchy.html"><span>Иерархия&nbsp;классов</span></a></li>
      <li><a href="functions.html"><span>Члены&nbsp;классов</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Класс AComboBox</h1><!-- doxytag: class="AComboBox" -->Плагин -- виджет обеспечивает доступ из Ананас.Скрипта ко всем публичным методам QComboBox, являясь врапером последнего. Наследует QComboBox.  
<a href="#_details">Подробнее...</a>
<p>
<code>#include &lt;<a class="el" href="acombobox_8h-source.html">acombobox.h</a>&gt;</code>
<p>

<p>
<a href="classAComboBox-members.html">Полный список членов класса</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Открытые слоты</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6322a5222543dc86c776c46ff27d7424"></a><!-- doxytag: member="AComboBox::count" ref="6322a5222543dc86c776c46ff27d7424" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>count</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16496241c9dbaeac90b33c71c85af99b"></a><!-- doxytag: member="AComboBox::insertStringList" ref="16496241c9dbaeac90b33c71c85af99b" args="(const QStringList &amp;, int index=-1)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertStringList</b> (const QStringList &amp;, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cbd6bf9b56c1f3373bff53f57610562b"></a><!-- doxytag: member="AComboBox::insertStrList" ref="cbd6bf9b56c1f3373bff53f57610562b" args="(const QStrList &amp;, int index=-1)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertStrList</b> (const QStrList &amp;, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc946d42bc3f6c459b4b56a0e2ff5c87"></a><!-- doxytag: member="AComboBox::insertStrList" ref="cc946d42bc3f6c459b4b56a0e2ff5c87" args="(const QStrList *, int index=-1)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertStrList</b> (const QStrList *, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="616af475791c4e5dc97eadaccfd455ed"></a><!-- doxytag: member="AComboBox::insertStrList" ref="616af475791c4e5dc97eadaccfd455ed" args="(const char **, int numStrings=-1, int index=-1)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertStrList</b> (const char **, int numStrings=-1, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9deefd5b6667aac69d109319677b4e6"></a><!-- doxytag: member="AComboBox::insertItem" ref="d9deefd5b6667aac69d109319677b4e6" args="(const QString &amp;text, int index=-1)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertItem</b> (const QString &amp;text, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e6e37b4fd533c5a2ef45f9fc0d983da8"></a><!-- doxytag: member="AComboBox::insertItem" ref="e6e37b4fd533c5a2ef45f9fc0d983da8" args="(const QPixmap &amp;pixmap, int index=-1)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertItem</b> (const QPixmap &amp;pixmap, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ef8f2f9738a35b63fa1c38068ea63db"></a><!-- doxytag: member="AComboBox::insertItem" ref="0ef8f2f9738a35b63fa1c38068ea63db" args="(const QPixmap &amp;pixmap, const QString &amp;text, int index=-1)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertItem</b> (const QPixmap &amp;pixmap, const QString &amp;text, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b73ade4898000a03942df66421cdb13"></a><!-- doxytag: member="AComboBox::removeItem" ref="0b73ade4898000a03942df66421cdb13" args="(int index)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>removeItem</b> (int index)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="50d5500f444f1fd5033a881f1c88c843"></a><!-- doxytag: member="AComboBox::currentItem" ref="50d5500f444f1fd5033a881f1c88c843" args="()" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>currentItem</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a6b0f582f6a10637efbe31632655da4"></a><!-- doxytag: member="AComboBox::setCurrentItem" ref="9a6b0f582f6a10637efbe31632655da4" args="(int index)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setCurrentItem</b> (int index)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1d213e56667dfe402fdecba3582583fa"></a><!-- doxytag: member="AComboBox::currentText" ref="1d213e56667dfe402fdecba3582583fa" args="() const " -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>currentText</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="03a554a701a396d7f416431dd4fe63ea"></a><!-- doxytag: member="AComboBox::setCurrentText" ref="03a554a701a396d7f416431dd4fe63ea" args="(const QString &amp;)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setCurrentText</b> (const QString &amp;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78a27b840ea54b1079aeeaf7d7cc02e5"></a><!-- doxytag: member="AComboBox::text" ref="78a27b840ea54b1079aeeaf7d7cc02e5" args="(int index) const " -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>text</b> (int index) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e68add3ea7b4faba4044069e1cc0d450"></a><!-- doxytag: member="AComboBox::pixmap" ref="e68add3ea7b4faba4044069e1cc0d450" args="(int index) const " -->
const QPixmap *&nbsp;</td><td class="memItemRight" valign="bottom"><b>pixmap</b> (int index) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5c092860c822973e40fab7b0642eb2c5"></a><!-- doxytag: member="AComboBox::changeItem" ref="5c092860c822973e40fab7b0642eb2c5" args="(const QString &amp;text, int index)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>changeItem</b> (const QString &amp;text, int index)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f15c34937eece6e6f1d3bd66753c9794"></a><!-- doxytag: member="AComboBox::changeItem" ref="f15c34937eece6e6f1d3bd66753c9794" args="(const QPixmap &amp;pixmap, int index)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>changeItem</b> (const QPixmap &amp;pixmap, int index)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ccc92c2959e20af86c0e2f0ce5a2de23"></a><!-- doxytag: member="AComboBox::changeItem" ref="ccc92c2959e20af86c0e2f0ce5a2de23" args="(const QPixmap &amp;pixmap, const QString &amp;text, int index)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>changeItem</b> (const QPixmap &amp;pixmap, const QString &amp;text, int index)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="916dd93f5f1df6253f207661221921f6"></a><!-- doxytag: member="AComboBox::autoResize" ref="916dd93f5f1df6253f207661221921f6" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>autoResize</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f3de05ba8e9db83b748ed35721cf2249"></a><!-- doxytag: member="AComboBox::setAutoResize" ref="f3de05ba8e9db83b748ed35721cf2249" args="(bool)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setAutoResize</b> (bool)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="45d5cfd609a2bbe55fe616561aba9647"></a><!-- doxytag: member="AComboBox::sizeHint" ref="45d5cfd609a2bbe55fe616561aba9647" args="() const " -->
QSize&nbsp;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41e06089786d8f4e6eee9ff0cfcb02ca"></a><!-- doxytag: member="AComboBox::setPalette" ref="41e06089786d8f4e6eee9ff0cfcb02ca" args="(const QPalette &amp;)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setPalette</b> (const QPalette &amp;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f454664d337e839547a4487cafd517e3"></a><!-- doxytag: member="AComboBox::setFont" ref="f454664d337e839547a4487cafd517e3" args="(const QFont &amp;)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setFont</b> (const QFont &amp;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="598684e123dd4586170bc87f986e83c1"></a><!-- doxytag: member="AComboBox::setEnabled" ref="598684e123dd4586170bc87f986e83c1" args="(bool)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setEnabled</b> (bool)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5ad3587b1c85934022e3cc2ebd358288"></a><!-- doxytag: member="AComboBox::setSizeLimit" ref="5ad3587b1c85934022e3cc2ebd358288" args="(int)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setSizeLimit</b> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="37d3ba2a8762a48c5ecb5d7cc406e32e"></a><!-- doxytag: member="AComboBox::sizeLimit" ref="37d3ba2a8762a48c5ecb5d7cc406e32e" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>sizeLimit</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2de173530d9f5906ac99a9bbe88741af"></a><!-- doxytag: member="AComboBox::setMaxCount" ref="2de173530d9f5906ac99a9bbe88741af" args="(int)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setMaxCount</b> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="176e08f8d95124dbe0f7c87cb11644ab"></a><!-- doxytag: member="AComboBox::maxCount" ref="176e08f8d95124dbe0f7c87cb11644ab" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>maxCount</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="600ff45a4d31a09f53719a107c9eb8f2"></a><!-- doxytag: member="AComboBox::setInsertionPolicy" ref="600ff45a4d31a09f53719a107c9eb8f2" args="(Policy policy)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setInsertionPolicy</b> (Policy policy)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="759311b251436023b347ad1f1d17f1bb"></a><!-- doxytag: member="AComboBox::insertionPolicy" ref="759311b251436023b347ad1f1d17f1bb" args="() const " -->
QComboBox::Policy&nbsp;</td><td class="memItemRight" valign="bottom"><b>insertionPolicy</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca90a1ca7f465955ad480bcd4356842b"></a><!-- doxytag: member="AComboBox::setValidator" ref="ca90a1ca7f465955ad480bcd4356842b" args="(const QValidator *)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setValidator</b> (const QValidator *)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0fa44d6c727ba1f15d84db657a5005a8"></a><!-- doxytag: member="AComboBox::validator" ref="0fa44d6c727ba1f15d84db657a5005a8" args="() const " -->
const QValidator *&nbsp;</td><td class="memItemRight" valign="bottom"><b>validator</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0560a47a5f634d8c5d293e111a45b443"></a><!-- doxytag: member="AComboBox::setListBox" ref="0560a47a5f634d8c5d293e111a45b443" args="(QListBox *)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setListBox</b> (QListBox *)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="57ab715eb78cc280bf325b71f938196e"></a><!-- doxytag: member="AComboBox::listBox" ref="57ab715eb78cc280bf325b71f938196e" args="() const " -->
QListBox *&nbsp;</td><td class="memItemRight" valign="bottom"><b>listBox</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae9af744d9574039512ad8d5a0134c86"></a><!-- doxytag: member="AComboBox::setLineEdit" ref="ae9af744d9574039512ad8d5a0134c86" args="(QLineEdit *edit)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setLineEdit</b> (QLineEdit *edit)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf547b592fb21ddceaffa58d09bea61a"></a><!-- doxytag: member="AComboBox::lineEdit" ref="cf547b592fb21ddceaffa58d09bea61a" args="() const " -->
QLineEdit *&nbsp;</td><td class="memItemRight" valign="bottom"><b>lineEdit</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b3d5fabeac84b0fd40ffea3b6ca5f0d"></a><!-- doxytag: member="AComboBox::setAutoCompletion" ref="1b3d5fabeac84b0fd40ffea3b6ca5f0d" args="(bool)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setAutoCompletion</b> (bool)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6a03c1ffe1c3479489d1fda592a7043"></a><!-- doxytag: member="AComboBox::autoCompletion" ref="f6a03c1ffe1c3479489d1fda592a7043" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>autoCompletion</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc7fc6068928ae079c63b8bb694efab0"></a><!-- doxytag: member="AComboBox::eventFilter" ref="cc7fc6068928ae079c63b8bb694efab0" args="(QObject *object, QEvent *event)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>eventFilter</b> (QObject *object, QEvent *event)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="471936c3af8e1763cd1a8f1d6a78cb47"></a><!-- doxytag: member="AComboBox::setDuplicatesEnabled" ref="471936c3af8e1763cd1a8f1d6a78cb47" args="(bool enable)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setDuplicatesEnabled</b> (bool enable)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bedb88d7e41fa19bd971d2019a0c589b"></a><!-- doxytag: member="AComboBox::duplicatesEnabled" ref="bedb88d7e41fa19bd971d2019a0c589b" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>duplicatesEnabled</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e2e3b0ee6da869c5d201d028f7ac310d"></a><!-- doxytag: member="AComboBox::editable" ref="e2e3b0ee6da869c5d201d028f7ac310d" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>editable</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc440bea5f55b81516c83fc413396363"></a><!-- doxytag: member="AComboBox::setEditable" ref="bc440bea5f55b81516c83fc413396363" args="(bool)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setEditable</b> (bool)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c1b35c21cb6d9bac5a83d9bf68d1d22"></a><!-- doxytag: member="AComboBox::popup" ref="1c1b35c21cb6d9bac5a83d9bf68d1d22" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>popup</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e0c3f94cabb2947215c9dbf7ed886779"></a><!-- doxytag: member="AComboBox::hide" ref="e0c3f94cabb2947215c9dbf7ed886779" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>hide</b> ()</td></tr>

<tr><td colspan="2"><br><h2>Открытые члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7473babe271548aea788885269269647"></a><!-- doxytag: member="AComboBox::AComboBox" ref="7473babe271548aea788885269269647" args="(QWidget *parent=0, const char *name=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>AComboBox</b> (QWidget *parent=0, const char *name=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e85a06b40d3c57d76478347c8f374d30"></a><!-- doxytag: member="AComboBox::AComboBox" ref="e85a06b40d3c57d76478347c8f374d30" args="(bool rw, QWidget *parent=0, const char *name=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>AComboBox</b> (bool rw, QWidget *parent=0, const char *name=0)</td></tr>

</table>
<hr><a name="_details"></a><h2>Подробное описание</h2>
Плагин -- виджет обеспечивает доступ из Ананас.Скрипта ко всем публичным методам QComboBox, являясь врапером последнего. Наследует QComboBox. 
<p>
Смотрите документацию на QComboBox, поставляемую вместе с библиотекой QT компании TrollTech или на сайте <a href="http://trolltech.com">http://trolltech.com</a><p>
Все публичные методы QComboBox доступны как публичные слоты <a class="el" href="classAComboBox.html" title="Плагин -- виджет обеспечивает доступ из Ананас...">AComboBox</a>.<p>
<div class="fragment"><pre class="fragment">        var myBox=Widget(<span class="stringliteral">"aComboBox1"</span>); <span class="comment">// Предполагается наличие в экранной форме комбобокса с именем aComboBox1</span>
        myBox.clear();
        myBox.insertItem(<span class="stringliteral">"Первый пункт"</span>);
        myBox.insertItem(<span class="stringliteral">"Второй пункт"</span>);
        myBox.insertItem(<span class="stringliteral">"Третий пункт"</span>);
        myBox.setCurrentItem(1); <span class="comment">// Порядковые номера наченаются с нуля, так что текущим делаем второй пункт.</span>
</pre></div> <hr>Объявления и описания членов классов находятся в файлах:<ul>
<li><a class="el" href="acombobox_8h-source.html">acombobox.h</a><li>acombobox.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:15 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
